package com.lantian.uavmaterial.service.impl;

import java.util.List;

import com.lantian.uavmaterial.domain.UavTechnicalSpecifications;
import com.lantian.uavmaterial.mapper.UavTechnicalSpecificationsMapper;
import com.lantian.uavmaterial.service.IUavTechnicalSpecificationsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 无人机整机参数信息Service业务层处理
 * 
 * @author lantian
 * @date 2025-11-06
 */
@Service
public class UavTechnicalSpecificationsServiceImpl implements IUavTechnicalSpecificationsService
{
    @Autowired
    private UavTechnicalSpecificationsMapper uavTechnicalSpecificationsMapper;

    /**
     * 查询无人机整机参数信息
     * 
     * @param uavId 无人机整机参数信息主键
     * @return 无人机整机参数信息
     */
    @Override
    public UavTechnicalSpecifications selectUavTechnicalSpecificationsByUavId(String uavId)
    {
        return uavTechnicalSpecificationsMapper.selectUavTechnicalSpecificationsByUavId(uavId);
    }

    /**
     * 查询无人机整机参数信息列表
     * 
     * @param uavTechnicalSpecifications 无人机整机参数信息
     * @return 无人机整机参数信息
     */
    @Override
    public List<UavTechnicalSpecifications> selectUavTechnicalSpecificationsList(UavTechnicalSpecifications uavTechnicalSpecifications)
    {
        return uavTechnicalSpecificationsMapper.selectUavTechnicalSpecificationsList(uavTechnicalSpecifications);
    }

    /**
     * 新增无人机整机参数信息
     * 
     * @param uavTechnicalSpecifications 无人机整机参数信息
     * @return 结果
     */
    @Override
    public int insertUavTechnicalSpecifications(UavTechnicalSpecifications uavTechnicalSpecifications)
    {
        return uavTechnicalSpecificationsMapper.insertUavTechnicalSpecifications(uavTechnicalSpecifications);
    }

    /**
     * 修改无人机整机参数信息
     * 
     * @param uavTechnicalSpecifications 无人机整机参数信息
     * @return 结果
     */
    @Override
    public int updateUavTechnicalSpecifications(UavTechnicalSpecifications uavTechnicalSpecifications)
    {
        return uavTechnicalSpecificationsMapper.updateUavTechnicalSpecifications(uavTechnicalSpecifications);
    }

    /**
     * 批量删除无人机整机参数信息
     * 
     * @param uavIds 需要删除的无人机整机参数信息主键
     * @return 结果
     */
    @Override
    public int deleteUavTechnicalSpecificationsByUavIds(String[] uavIds)
    {
        return uavTechnicalSpecificationsMapper.deleteUavTechnicalSpecificationsByUavIds(uavIds);
    }

    /**
     * 删除无人机整机参数信息信息
     * 
     * @param uavId 无人机整机参数信息主键
     * @return 结果
     */
    @Override
    public int deleteUavTechnicalSpecificationsByUavId(String uavId)
    {
        return uavTechnicalSpecificationsMapper.deleteUavTechnicalSpecificationsByUavId(uavId);
    }
}
